Skip to content

Add sync-with-base-branch step to /ship to prevent merge conflicts#23

Merged
sebastientaggart merged 1 commit into
devfrom
feature/sync-before-commit
Mar 26, 2026
Merged

Add sync-with-base-branch step to /ship to prevent merge conflicts#23
sebastientaggart merged 1 commit into
devfrom
feature/sync-before-commit

Conversation

@sebastientaggart

Copy link
Copy Markdown
Member

Adds a new Step 4 (Sync with base branch) to the /ship skill that runs git fetch origin <base> && git merge origin/<base> before committing. This ensures the feature branch is up to date with dev (or main in trunk mode) before any commit is made, preventing the merge conflicts that occur when sequential feature branches carry stale generated files.

Uses merge (not rebase) so it's safe for all cases: unpushed branches fast-forward, pushed branches get a clean merge commit without force push.

Issue #22

@sebastientaggart

Copy link
Copy Markdown
Member Author

Review Summary

Verdict: APPROVE

Findings

  • [NOTE] The new Step 4 correctly uses {{#if BRANCH_DEV}} / {{#if !BRANCH_DEV}} conditional blocks, consistent with the existing pattern throughout the codebase (ship.md, release.md, version.md).
  • [NOTE] All internal step-number references have been renumbered correctly (Steps 4-8), including the cross-reference in Step 7 ("skip directly to Step 8").
  • [NOTE] The merge-based sync strategy (vs. rebase) is appropriate — it avoids force-push issues for already-pushed branches, as described in the PR body.

No issues found. Code looks correct and follows project conventions.

@sebastientaggart
sebastientaggart merged commit e03f03f into dev Mar 26, 2026
0 of 2 checks passed
@sebastientaggart sebastientaggart mentioned this pull request Mar 26, 2026
@sebastientaggart
sebastientaggart deleted the feature/sync-before-commit branch April 8, 2026 14:44
sebastientaggart added a commit that referenced this pull request Apr 8, 2026
Add sync-with-base-branch step to /ship to prevent merge conflicts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant